Move doc(hidden) items to __private module and make yielder::pair unsafe#84
Move doc(hidden) items to __private module and make yielder::pair unsafe#84
Conversation
|
If it’s known that these methods can cause UB if used incorrectly, and are actually Otherwise, people might just consider it a potential semver-breaking module, not an actual safety issue. |
To clarify that they are not public APIs.
Disagreed. First of all, users should not use private APIs. I think the distinction between "safe" and "unsafe" private modules is misleading. (Even if it is a "safe" private module, it is not "fine" for users to use it.)
Disagreed. Such APIs are usually called unstable instead of private. That said, I don't think those who would abuse the private API care about documentation or convention... |
3a5efeb to
530fc82
Compare
Given this point, I think it would be difficult to completely deal with users who want to abuse the private API unless the async-stream/async-stream/src/yielder.rs Lines 23 to 28 in 530fc82 |
Since this is adding an |
No, unsafe_code will not trigger on |
To clarify that they are not public APIs. (To prevent someone from accidentally using it...)